home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 18
/
CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso
/
CUCD
/
Programming
/
AmigaE
/
Src
/
Guide
/
gadgets.e
< prev
next >
Wrap
Text File
|
1994-12-13
|
631b
|
20 lines
MODULE 'intuition/intuition'
CONST GADGETBUFSIZE = 4 * GADGETSIZE
PROC main()
DEF buf[GADGETBUFSIZE]:ARRAY, next, wptr
next:=Gadget(buf, NIL, 1, 0, 10, 30, 50, 'Hello')
next:=Gadget(next, buf, 2, 3, 70, 30, 50, 'World')
next:=Gadget(next, buf, 3, 1, 10, 50, 50, 'from')
next:=Gadget(next, buf, 4, 0, 70, 50, 70, 'gadgets')
wptr:=OpenW(20,50,200,100, 0, WFLG_ACTIVATE,
'Gadgets in a window',NIL,1,buf)
IF wptr /* Check to see we opened a window */
Delay(500) /* Wait a bit */
CloseW(wptr) /* Close the window */
ELSE
WriteF('Error -- could not open window!')
ENDIF
ENDPROC